import axios from "axios";

const service = axios.create({
  baseURL:
    "https://www.fastmock.site/mock/c1a29450dae2986f65503ce0402c5b29/admin",
  timeout: 5000,
});

service.interceptors.request.use(
  (config) => {
    return config;
  },
  (err) => {
    return Promise.reject(err);
  }
);

service.interceptors.response.use(
  (response) => {
    return response;
  },
  (err) => {
    return Promise.reject(err);
  }
);

export default service;
